<p>
  <%= condition.class.human_attribute_name(:description) %>
</p>
  <%= fields_for param_prefix, condition do |form| %>
    <div class="field products_condition_products">
      <%= form.label :product_ids_string, t('solidus_promotions.product_condition.choose_products') %>
      <%= form.hidden_field :product_ids_string, value: condition.product_ids.join(","), class: "fullwidth", is: "product-picker" %>
    </div>

    <div class="form-group">
      <%
        match_policy_options = options_for_select(
          SolidusPromotions::Conditions::Product::MATCH_POLICIES.map { |s| [t("solidus_promotions.product_condition.match_#{s}"),s] },
          condition.preferred_match_policy
        )
      %>
      <% select = form.select :preferred_match_policy, match_policy_options %>
      <%= form.label :preferred_match_policy, t('solidus_promotions.product_condition.label', select: select).html_safe %>
    </div>
  <% end %>
